//
//  HttpRequest.h
//  HaoDeCaiFu
//
//  Created by 郑开宏 on 2017/10/31.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import <Foundation/Foundation.h>
//正式
//#define KIpAddress @"http://jx.chinahonden.xyz:15504/"
//#define KURL @"http://jx.chinahonden.xyz:15504/api/ApiCall"
//#define KURLPost @"http://jx.chinahonden.xyz:15504/api/ApiCall?"
//#define KSelfUrl @"http://jx.chinahonden.xyz:15504/"

//内测
//#define KIpAddress @"http://172.16.1.197:2004/"
//#define KURL @"http://172.16.1.197:2004/api/ApiCall"
//#define KURLPost @"http://172.16.1.197:2004/api/ApiCall?"
//#define KSelfUrl @"http://172.16.1.197:2004/"

//外测
#define KIpAddress @"http://1.193.162.246:13504/"
#define KURL @"http://1.193.162.246:13504/api/ApiCall"
#define KURLPost @"http://1.193.162.246:13504/api/ApiCall?"
#define KSelfUrl @"http://1.193.162.246:13504/"
@interface HttpRequest : NSObject

+(void)sendPostRequestWithURL:(NSString *)url WithParamets:(NSDictionary *)dict WithJsonString:(NSString *)jsonString  success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

+(void)sendGetRequestWithURL:(NSString *)url WithParamets:(NSDictionary *)param success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

+(void)sendSelfPostRequestWithURL:(NSString *)url WithParamets:(NSString *)jsonString WithParamet:(NSDictionary *)dict success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

+(void)sendSelfGetRequestWithURL:(NSString *)url WithParamets:(NSDictionary *)param success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

+(void)sendTwoSelfGetRequestWithURL:(NSString *)url WithParamets:(NSDictionary *)param success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

+(void)sendSelfPostTwoRequestWithURL:(NSString *)url WithParamets:(NSString *)jsonString WithParamet:(NSDictionary *)dict success:(void(^)(id result))success failure:(void(^)(NSError *errer))failure;

@end
